package com.ruoyi.product.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.product.mapper.ProductServiceMapper;
import com.ruoyi.product.domain.ProductService;
import com.ruoyi.product.service.IProductServiceService;

/**
 * 商品服务Service业务层处理
 * 
 * @author guoguoa
 * @date 2025-01-06
 */
@Service
public class ProductServiceServiceImpl implements IProductServiceService 
{
    @Autowired
    private ProductServiceMapper productServiceMapper;

    /**
     * 查询商品服务
     * 
     * @param id 商品服务主键
     * @return 商品服务
     */
    @Override
    public ProductService selectProductServiceById(Integer id)
    {
        return productServiceMapper.selectProductServiceById(id);
    }

    /**
     * 查询商品服务列表
     * 
     * @param productService 商品服务
     * @return 商品服务
     */
    @Override
    public List<ProductService> selectProductServiceList(ProductService productService)
    {
        return productServiceMapper.selectProductServiceList(productService);
    }

    /**
     * 新增商品服务
     * 
     * @param productService 商品服务
     * @return 结果
     */
    @Override
    public int insertProductService(ProductService productService)
    {
        return productServiceMapper.insertProductService(productService);
    }

    /**
     * 修改商品服务
     * 
     * @param productService 商品服务
     * @return 结果
     */
    @Override
    public int updateProductService(ProductService productService)
    {
        return productServiceMapper.updateProductService(productService);
    }

    /**
     * 批量删除商品服务
     * 
     * @param ids 需要删除的商品服务主键
     * @return 结果
     */
    @Override
    public int deleteProductServiceByIds(Integer[] ids)
    {
        return productServiceMapper.deleteProductServiceByIds(ids);
    }

    /**
     * 删除商品服务信息
     * 
     * @param id 商品服务主键
     * @return 结果
     */
    @Override
    public int deleteProductServiceById(Integer id)
    {
        return productServiceMapper.deleteProductServiceById(id);
    }
}
